/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package example.hello;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

/**
 *
 * @author jfdenise
 */
public class Server {

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {

        try {
    
            SystemeInfoFactoryImpl obj = new SystemeInfoFactoryImpl();
            Registry  registry = LocateRegistry.createRegistry(1899);   
            registry.rebind("monito", obj);  
        } catch (Exception e) {
            System.out.println("Impl err: " + e.getMessage());
            e.printStackTrace();
        }
    }
}
